<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">





    <p:dataTable id="newCoursesSummaryDatatableID" 
                 var="course" 
                 value="#{webResourceBean.lastCourses}" 
                 rows="10"
                 emptyMessage="No Rows">

        <p:column headerText="Name">
            <h:outputLink id="urlNewCourseSummary" value="#{course.url}" target="_blank" >
                <h:outputText value="#{course.title}" />  
            </h:outputLink>
        </p:column>

        <p:column headerText="Date">  
            <h:outputText value="#{course.insertDate}" />  
        </p:column>
    </p:dataTable>

    <div style="margin-top:10px;">
        <center><a href="allCourses.xhtml">View All</a></center>
    </div>


</ui:composition>

